<template>
  <div class="polygon_tab polygon_tab_dispatch">
    <div class="p_tab_title">派单系统</div>
    <div class="polygon_tab_content">
      <div class="tab_row">
        <div class="per_item">
          <div class="radar_box">
            <div class="radar_target"></div>
            <div class="radar_scan"></div>
          </div>
          <div class="radar_box_r">
            <div class="top_line">
              AMPI:
              <span class="up">
                上升
                <i class="icon_arrow icon_arrow_up"></i>
              </span>
            </div>
            <div>点位1</div>
          </div>
        </div>
        <div class="per_item">
          <div class="radar_box">
            <div class="radar_target"></div>
            <div class="radar_scan"></div>
          </div>
          <div class="radar_box_r">
            <div class="top_line">
              AMPI:
              <span class="down">
                下降
                <i class="icon_arrow icon_arrow_down"></i>
              </span>
            </div>
            <div>点位2</div>
          </div>
        </div>
      </div>

      <div class="tab_row">
        <div class="per_item">
          <div class="radar_box">
            <div class="radar_target"></div>
            <div class="radar_scan"></div>
          </div>
          <div class="radar_box_r">
            <div class="top_line">
              AMPI:
              <span class="up">
                上升
                <i class="icon_arrow icon_arrow_up"></i>
              </span>
            </div>
            <div>点位3</div>
          </div>
        </div>
        <div class="per_item">
          <div class="radar_box">
            <div class="radar_target"></div>
            <div class="radar_scan"></div>
          </div>
          <div class="radar_box_r">
            <div class="top_line">
              AMPI:
              <span class="down">
                下降
                <i class="icon_arrow icon_arrow_down"></i>
              </span>
            </div>
            <div>点位4</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'PolygonTabDispatch',
  components: {},
  data() {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss">
@keyframes radar_rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.polygon_tab_dispatch {
  top: 135px;
  right: 10px;
  width: 487px;
  height: 304px;
  background-image: url('../../assets/img/polygon_2.png');
  background-size: contain;
  color: #00e4ff;

  &:hover {
    filter: drop-shadow(0 0 20px rgba(14, 166, 229, 0.5));
    transform: translate3d(-10px, -10px, 20px) scale(1.01);
    perspective: 500px;
  }

  .tab_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 115px;

    padding: 20px 15px 0;

    &:first-child {
      border-bottom: 1px solid #1e3b82;
      padding: 0 15px 20px;
    }
  }

  .per_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
  }

  .radar_box {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 14px;

    .radar_target {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 30px;
      height: 30px;
      background-position: center center;
      background-repeat: no-repeat;
      background-image: url('../../assets/img/radar_target.png');
      background-size: contain;
    }

    .radar_scan {
      width: 100%;
      height: 100%;
      background-size: contain;
      background-position: center center;
      background-repeat: no-repeat;
      background-image: url('../../assets/img/radar_scan.png');

      animation-name: radar_rotate;
      animation-duration: 3s;
      animation-iteration-count: infinite;
      animation-fill-mode: both;
      animation-timing-function: ease-in-out;
    }
  }

  .top_line {
    span.up {
      color: #18f35b;
    }

    span.down {
      color: #ff3a5a;
    }

    .icon_arrow {
      display: inline-block;
      width: 12px;
      height: 14px;
      background-repeat: no-repeat;
      background-size: contain;
      margin-bottom: -1px;
    }

    .icon_arrow_up {
      background-image: url('../../assets/img/icon_arrow_up.png');
    }
    .icon_arrow_down {
      background-image: url('../../assets/img/icon_arrow_down.png');
    }
  }

  .top_line ~ div {
    color: #fff;
  }
}
</style>
